package com.jbinfo.qingcaowan.studyManager.entity;

import java.io.Serializable;
import java.util.Date;

public class Remark implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2524829617162087170L;

	/*   ****     属性列表         *****     */
    private String remarkId; //评论编号

    private String remarkBookid; //评论所在的书籍编号

    private String remarkChapterid; //评论所在的章节编号

    private String remarkCardid;  //评论所在的卡片编号

    private String content;   //评论内容
 
    private String userid;  //评论人编号

    private Date remarkTime; //评论时间

    private String isshow;  //是否展示    0显示。1无效
    
    private String bookName;  //书籍的名字
    
    private String parentId;  //父代的评论编号
    
    
    
  /*      get&set   方法开始 */

    public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getRemarkId() {
        return remarkId;
    }

    public void setRemarkId(String remarkId) {
        this.remarkId = remarkId == null ? null : remarkId.trim();
    }

    public String getRemarkBookid() {
        return remarkBookid;
    }

    public void setRemarkBookid(String remarkBookid) {
        this.remarkBookid = remarkBookid == null ? null : remarkBookid.trim();
    }

    public String getRemarkChapterid() {
        return remarkChapterid;
    }

    public void setRemarkChapterid(String remarkChapterid) {
        this.remarkChapterid = remarkChapterid == null ? null : remarkChapterid.trim();
    }

    public String getRemarkCardid() {
        return remarkCardid;
    }

    public void setRemarkCardid(String remarkCardid) {
        this.remarkCardid = remarkCardid == null ? null : remarkCardid.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }


    public Date getRemarkTime() {
		return remarkTime;
	}

	public void setRemarkTime(Date remarkTime) {
		this.remarkTime = remarkTime;
	}

	public String getIsshow() {
        return isshow;
    }

    public void setIsshow(String isshow) {
        this.isshow = isshow == null ? null : isshow.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Remark other = (Remark) that;
        return (this.getRemarkId() == null ? other.getRemarkId() == null : this.getRemarkId().equals(other.getRemarkId()))
            && (this.getRemarkBookid() == null ? other.getRemarkBookid() == null : this.getRemarkBookid().equals(other.getRemarkBookid()))
            && (this.getRemarkChapterid() == null ? other.getRemarkChapterid() == null : this.getRemarkChapterid().equals(other.getRemarkChapterid()))
            && (this.getRemarkCardid() == null ? other.getRemarkCardid() == null : this.getRemarkCardid().equals(other.getRemarkCardid()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getRemarkTime() == null ? other.getRemarkTime() == null : this.getRemarkTime().equals(other.getRemarkTime()))
            && (this.getIsshow() == null ? other.getIsshow() == null : this.getIsshow().equals(other.getIsshow()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRemarkId() == null) ? 0 : getRemarkId().hashCode());
        result = prime * result + ((getRemarkBookid() == null) ? 0 : getRemarkBookid().hashCode());
        result = prime * result + ((getRemarkChapterid() == null) ? 0 : getRemarkChapterid().hashCode());
        result = prime * result + ((getRemarkCardid() == null) ? 0 : getRemarkCardid().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getRemarkTime() == null) ? 0 : getRemarkTime().hashCode());
        result = prime * result + ((getIsshow() == null) ? 0 : getIsshow().hashCode());
        return result;
    }

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
}